#ifndef TROPHYDISPLAY_H
#define TROPHYDISPLAY_H

#include <vector>
#include "Sprite.h"

class TrophyDisplay {
	std::vector<Rect> trophySlots;
	unsigned int currSlot;
	unsigned int size;
public:
	TrophyDisplay(void) {
		trophySlots = std::vector<Rect>(100);
		currSlot = 0;
	};
	Rect GetNextSlot(void) {
		if(isFull()) return trophySlots[currSlot];
		return trophySlots[currSlot++];
	};
	void PlaceOnNextSlot(Sprite *s) {
		if(isFull()) return; 
		Rect slot = trophySlots[currSlot++];
		//trophies should fit in slot by graphic design
		s->SetX(slot.x+1); //+1 Will only look good when SCALE=2
		s->SetY(slot.y+1);
		s->ResetToDefaultFilm();
	};

	void SetSlot(unsigned int index, Rect element) {
		trophySlots[index] = element;
	}
	
	Rect GetElement(unsigned int index) {
		return trophySlots[index];
	}

	void SetSize(unsigned int _size) {
		size = _size;
	}

	bool isFull(void) {
		if(currSlot == size)
			return true;
		return false;
	};
};

#endif